// 选择充值金额
$('.process_order_list span').click(function(){
	$index = $(this).index();
	$text = $(this).text();
	if($index==0){
		$n = $text.substring(1,0);
	}else if($index==1 || $index==3){
		$n = $text.substring(2,0);
	}else if($index==4 || $index==6){
		$n = $text.substring(3,0);
	}else{
		$n = $text.substring(4,0);
	}
	$(this).css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_active_bg.png)','color':'rgb(53, 27, 167)'});
	$(this).siblings().css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_bg.png)','color':'white'});
	$('#recharge_amount').val($n+'元');
	$('#yuanbao_amount').val($n+'个');
})

// 订单确定按钮
$('.fill_order_sure').click(function(){
	$('.process_order_list ul li:nth-child(1)').hide();
	$('.process_order_list ul li:nth-child(2)').show();
	$('.process_order_title ul li span:nth-child(2)').css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_bg.png)','color':'white'});
	$('.process_order_title ul li:nth-child(2) span:nth-child(2)').css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_active_bg.png)','color':'rgb(53, 27, 167)'});
});

// 选择支付方式
$('.process_order_list .pay_method').click(function(){
	$(this).siblings().find('p').css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_bg.png)','color':'white'});
	$(this).find('p').css({'backgroundImage':'url(img/recharge-center/rechange_center_process_btn_active_bg.png)','color':'rgb(53, 27, 167)'});
})